home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20021006-20030409
/
000241_fdc@columbia.edu_Fri Jan 24 11:59:20 EST 2003.msg
< prev
next >
Wrap
Text File
|
2003-04-08
|
2KB
|
53 lines
Article: 14033 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Is this an infinite loop bug in find?
Date: 24 Jan 2003 11:38:51 -0500
Organization: Columbia University
Lines: 36
Message-ID: <b0rq6r$aev$1@watsol.cc.columbia.edu>
References: <u7kcv5m5r.fsf@att.net>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1043426332 21280 128.59.39.139 (24 Jan 2003 16:38:52 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 24 Jan 2003 16:38:52 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14033
In article <u7kcv5m5r.fsf@att.net>,
Thomas A. Horsley <tom.horsley@att.net> wrote:
: Details: Kermit 95 Version 2.1.3
: Windows XP Professional
:
: I'm trying to implement my conditional ssh-add stuff, and starting small
: with a single special case before I try to fancy it up and generalize it.
:
: ...if I just manually define a similar macro and use it as the
: pattern in a find command, it seems to do the same thing, so the "take"
: and the surrounding script is probably unimportant.
:
It's a bug: The GREP (FIND) command did not expand pattern variables, and
if given one (such as "\m(foo)") would quickly descend into Quoting Hell.
It should be fixed in the latest C-Kermit daily build:
http://www.columbia.edu/kermit/ckdaily.html
but the fix won't appear in K95 until the next release, which is not yet
even planned. As a workaround, you could do something like this:
define mygrep {
local xx
assign xx {
find \%1 \%2
if fail end 1
}
do xx
if fail end 1
}
And then use MYGREP instead of GREP.
Thanks for reporting it.
- Frank